翻訳と辞書 |
span and div : ウィキペディア英語版 | span and div
In HTML, span and div elements are used to define parts of a document so that they are identifiable when no other HTML element is suitable. While other HTML elements such as p (paragraph), em (emphasis) and so on accurately represent the semantics of the content, the use of span and div leads to better accessibility for readers and easier maintainability for authors. Where no existing HTML element is applicable, span and div can valuably represent parts of a document so that HTML attributes such as class , id , lang , or dir can be applied.
span represents an inline portion of a document, for example words within a sentence. div represents a block-level portion of a document such as a few paragraphs, or an image with its caption. Neither element has any meaning in itself but they allow semantic attributes (e.g. lang="en-US" ), CSS styling (e.g. color, typography) or client-side scripting (e.g. animation, hiding, augmentation) to be applied.〔〔 == History == The span element was introduced to HTML in the internationalization working group's second draft (html-i18n ) in 1995. However, it was not until HTML 4.01 that it became part of the HTML language, appearing in the HTML 4 W3C Working Draft in 1997.〔(【引用サイトリンク】url=http://www.w3.org/community/webed/wiki/HTML/Elements/span )〕
抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)』 ■ウィキペディアで「span and div」の詳細全文を読む
スポンサード リンク
翻訳と辞書 : 翻訳のためのインターネットリソース |
Copyright(C) kotoba.ne.jp 1997-2016. All Rights Reserved.
|
|